<template>
  <el-table v-loading="loading" :data="selectMatList" @selection-change="handleSelectionChange">
    <el-table-column prop="adhesiveTape" header-align="center" align="center" label="胶带（米）">
      <template slot-scope="scope">
        <span v-if="!editStatus">{{scope.row.adhesiveTape}}</span>
        <el-input v-else v-model="scope.row.adhesiveTape" placeholder="请输入"></el-input>
      </template>
    </el-table-column>
    <el-button size="small" type="primary" v-if="status == '1' || status =='2' || status == '4' " @click="editData()">{{insert}}</el-button>
  </el-table>
</template>

<script>
//编辑
editData = () => {
  this.editStatus = !this.editStatus
  if(!this.editStatus){
    this.insert = '编辑'
    this.$nextTick(()=>{
      this.getDataList();
    })
  }else{
    this.insert = '取消编辑'
  }
}

//移除mat

</script>

<style scoped>

</style>